package com.tenbit.emp.dao;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.tenbit.emp.vo.EMP1000VO;

@Component
public class CodeZipEDAO extends SqlSessionDaoSupport{
	@Autowired
	private SqlSessionTemplate sqlSession;
	
	public List<EMP1000VO> listCodeZipByMv(){
		return (List<EMP1000VO>)sqlSession.selectList("listCodeZipByMainView");
	}
	
	public EMP1000VO selectCodeZip(String code){
		return (EMP1000VO)sqlSession.selectOne("selectCodeZip",code);
	}
	
	
}
